package demo7;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
//@Scope("singleton")//单例模式,默认是单例模式
@Scope("prototype")//多例模式,每次获取bean都会创建一个新的对象
public class DBConnect {

}
